package com.sunrise.gateway.shiro.cookie;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.mgt.CookieRememberMeManager;

/**
 * Created by wangmin on 2018/10/22.
 */
public class MyCookieRememberMeManager extends CookieRememberMeManager {
    // 不生成cookie
    protected boolean isRememberMe(AuthenticationToken token) {
        return false;
    }
    protected void rememberSerializedIdentity(Subject subject, byte[] serialized) {
    }
    public void onSuccessfulLogin(Subject subject, AuthenticationToken token, AuthenticationInfo info) {
    }
}
